import request from '@/axios'
import { FemaleType } from './types'

export const getResourceMaterialListApi = (params: any) => {
  return request.get({ url: '/check/material', params })
}

export const getFemaleListApi = (params: any) => {
  return request.get<FemaleType[]>({ url: '/check/female', params })
}

export const addFemaleApi = (data: any) => {
  return request.post({ url: '/check/female', data })
}

export const putFemaleApi = (data: any) => {
  return request.put({ url: `/check/female/${data.id}`, data })
}

export const putFemaleVersionApi = (data: any) => {
  return request.put({ url: `/check/female/${data.id}/version` })
}

export const getFemaleApi = (data: any) => {
  return request.get({ url: `/check/female/${data.id}` })
}

export const deleteFemaleApi = (ids: string[] | number[]) => {
  return request.delete({ url: '/check/female', data: ids })
}
